import type { RouteRecordRaw } from 'vue-router';

// Layout 布局
const Layout = () => import('@/layout/index.vue');
// 面试专区
const Interview = () => import('@/views/interview/index.vue');

const routes: RouteRecordRaw = {
	path: '/interview',
	name: 'interviewRouter',
	component: Layout,
	meta: {
		title: 'router.interview',
		icon: 'interview',
		index: '/interview',
	},
	children: [
		{
			path: '/interview/JavaScript',
			name: 'javascriptLayout',
			component: Interview,
			meta: {
				title: 'router.JavaScript',
				icon: 'javascript',
				index: '/interview/JavaScript',
			},
		},
		{
			path: '/interview/vue',
			name: 'vueLayout',
			component: Interview,
			meta: {
				title: 'router.vue',
				icon: 'vuejs',
				index: '/interview/vue',
			},
		},
		{
			path: '/interview/Program',
			name: 'programLayout',
			component: Interview,
			meta: {
				title: 'router.Program',
				icon: 'biancheng',
				index: '/interview/program',
			},
		},
	],
};

export default routes;
